stylecontext: add GTK_STYLE_CLASS_TITLEBAR define
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 16 Aug 2013 17:25:32 +0000 (19:25 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 Aug 2013 03:12:22 +0000 (23:12 -0400)
For consistency with the other stock style classes.

https://bugzilla.gnome.org/show_bug.cgi?id=706045

docs/reference/gtk/gtk3-sections.txt
gtk/gtkstylecontext.h
gtk/gtkwindow.c

index affd74313e2c25840521fccc3ca4fc16b96f7fe4..7f3d6148383efc231e12e468a32753504b6c2020 100644 (file)
@@ -5944,6 +5944,7 @@ GTK_STYLE_CLASS_OSD
 GTK_STYLE_CLASS_LEVEL_BAR
 GTK_STYLE_CLASS_CURSOR_HANDLE
 GTK_STYLE_CLASS_INSERTION_CURSOR
+GTK_STYLE_CLASS_TITLEBAR
 GTK_STYLE_REGION_COLUMN
 GTK_STYLE_REGION_COLUMN_HEADER
 GTK_STYLE_REGION_ROW
index be8a0dcca48b9dd327ee838415b1f582f568f54f..53aaae9729f64bafe8eecf0d531f8e0efa101980 100644 (file)
@@ -735,6 +735,13 @@ struct _GtkStyleContextClass
  */
 #define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor"
 
+/**
+ * GTK_STYLE_CLASS_TITLEBAR:
+ *
+ * A CSS class used when rendering a titlebar in a toplevel
+ * window.
+ */
+#define GTK_STYLE_CLASS_TITLEBAR "titlebar"
 
 /* Predefined set of widget regions */
 
index 1210acf4910934f99afa6c8f92a31efc3c0c6786..5ea9b1d9f713b0babe3a5888cd44c0bf0ec14812 100644 (file)
@@ -5258,7 +5258,7 @@ create_decoration (GtkWidget *widget)
                     "vpadding", 0,
                     NULL);
       context = gtk_widget_get_style_context (priv->title_box);
-      gtk_style_context_add_class (context, "titlebar");
+      gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLEBAR);
       gtk_widget_set_parent (priv->title_box, widget);
 
       title = g_markup_printf_escaped ("<b>%s</b>",